<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>五彩导航</title>
  <style>
    div a{
      display: inline-block;
      width: 125px;
      height: 59px;
      font-size: 20px;
      color: #fff;
      text-decoration: none;
      /* background-color: palegoldenrod; */
      background-repeat: no-repeat;
      text-align: center;
      line-height: 50px;
    }
    .nav1{
      background-position: 2px 0;
      background-image: url("../img/bg1.png");
    }
    .nav1:hover{
      background-image: url("../img/bg11.png");
    }
    .nav2{
      background-position: 2px 0;
      background-image: url("../img/bg2.png");
    }
    .nav2:hover{
      background-image: url("../img/bg22.png");
    }
    .nav3{
      background-position: 2px 0;
      background-image: url("../img/bg3.png");
    }
    .nav4{
      background-position: 2px 0;
      background-image: url("../img/bg4.png");
    }
  </style>
</head>

<body>
  <div>
    <a href="#" class="nav1">五彩导航</a>
    <a href="#" class="nav2">五彩导航</a>
    <a href="#" class="nav3">五彩导航</a>
    <a href="#" class="nav4">五彩导航</a>
  </div>
</body>

</html>